package org.flycloud.web.platform;

import java.util.Map;

import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.flycloud.web.sso.client.IFilterSetter;
import org.springframework.stereotype.Component;

@Component
public class FilterSetter implements IFilterSetter {

	@Override
	public void set(ShiroFilterFactoryBean bean, Map<String, String> map) {

		map.put("/login", "anon");
		map.put("/menutree", "authc");

		bean.setUnauthorizedUrl("403");
	}

}
